/*
 * @Author: 137 '1432417996@qq.com'
 * @Date: 2025-04-20 20:50:12
 * @LastEditors: 137 '1432417996@qq.com'
 * @LastEditTime: 2025-04-20 22:38:15
 * @FilePath: \starter-3\api\userAction.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { request } from '@/api/request'

// 检查用户行为状态
export function checkUserAction(params) {
    return request({
        url: '/user/action/check',
        method: 'get',
        params
    })
}



// 我的收藏列表
export function getUserFavorites(data) {
    return request({
        url: '/user/action/favorites',
        method: 'post',
        data
    })
}



// 我的关注动态
export function getUserFollowNews(data) {
    return request({
        url: '/user/action/follow-news',
        method: 'post',
        data
    })
}


// 我的关注列表
export function getUserFollows(data) {
    return request({
        url: '/user/action/follows',
        method: 'post',
        data
    })
}


// 执行用户行为（收藏、关注、点赞、点踩等）
export function performUserAction(data) {
    return request({
        url: '/user/action/perform',
        method: 'post',
        data
    })
}